package com.sgb.zhaocai.base;

import com.alibaba.android.arouter.launcher.ARouter;
import com.sgb.zhaocai.service.TenderPurchaseApi;
import com.swgk.core.BaseAppApplication;
import com.swgk.core.BuildConfig;
import com.swgk.core.base.api.APIManager;
import com.swgk.core.base.api.BaseApiSourceImpl;
import com.swgk.core.util.MLog;
import com.swgk.core.util.SharedPreferenceUtil;

/**
 * Time:2021/7/1
 * AUTHOR:F_Q
 * Description:
 */
public class ZhaoCaiApplication extends BaseAppApplication {

    static ZhaoCaiApplication instance;

    public static ZhaoCaiApplication getInstance() {
        return instance;
    }

    @Override
    protected BaseApiSourceImpl getApiSoure() {
        return null;
    }

    @Override
    protected String getBaseUrl() {
        return null;
    }

    @Override
    protected String getDbPath() {
        return null;
    }

    @Override
    protected <T> Class<T> getPreferenceSourceClass() {
        return null;
    }

    @Override
    public void onCreate() {
        super.onCreate();
        instance = this;
        SharedPreferenceUtil.init(this);
        if (MLog.DEBUG_LOG) {
            // 打印日志
            ARouter.openLog();
            // 开启调试模式(如果在InstantRun模式下运行，必须开启调试模式！线上版本需要关闭,否则有安全风险)
            ARouter.openDebug();
            ARouter.printStackTrace();// 打印日志的时候打印线程堆栈
        }
        ARouter.init(this);
    }


}
